package test;

/**
 * @author chihb
 * @create-time 2024/6/20 10:49
 * @description
 */
public class encrypt {
    public static void main(String[] args) {
        System.out.println(password(1983));
    }
    private static int password(int num){
        int q=num/1000;
        int b=num/100%10;
        int s=num%100/10;
        int g=num%10;
        q=(q+5)%10;
        b=(b+5)%10;
        s=(s+5)%10;
        g=(g+5)%10;
        String str=String.valueOf(g)+s+b+q;
        return Integer.parseInt(str);
    }
}
